package com.didi.gulimall.api;

import com.didi.gulimall.common.utils.R;
import com.didi.gulimall.common.vo.OrderItemVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author 10626
 */
@FeignClient("gulimall-cart")
public interface CartApiService {

    @GetMapping("member/list")
    R memberList();

    @GetMapping("member/list/no/updateproduct")
    R memberListNoUpdateProduct();

    @PostMapping("order/delete")
    R orderRemoveItem(@RequestBody List<OrderItemVo> cart);
}
